package com.atguigu.gulimall.order.service;

import com.atguigu.common.to.mq.SecKillSkuInfoTo;
import com.atguigu.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author lxx
 * @email 1914264274@qq.com
 * @date 2022-03-08 15:40:02
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getConfirmInfo() throws Exception;

    OrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo) throws Exception;

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity order);

    PayVo getOrderPay(String orderSn);

    PageUtils getOrderList(Map<String, Object> param);

    void updateOrserPayStatus(PayAsyncVo payAsyncVo);

    void createSeckillOrder(SecKillSkuInfoTo orderTo);
}


